<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>agora demo</title>
</head>
<body>
    
    <script src="https://cdn.agora.io/sdk/web/AgoraRTCSDK-2.7.0.js"></script>
    <script>
        var client = AgoraRTC.createClient({mode: 'live', codec: "h264"});

        client.init('6f83a23520aa4e6e86eb707b5038cf11', function () {
            console.log("AgoraRTC client initialized");

            client.join(<TOKEN_OR_KEY>, <CHANNEL_NAME>, <UID>, function(uid) {
                console.log("User " + uid + " join channel successfully");

            }, function(err) {
                console.log("Join channel failed", err);
            });

        }, function (err) {
            console.log("AgoraRTC client init failed", err);
        });
    </script>
</body>
</html>